function [t, el] = mesh_trimapmesh(t, s, st, str)
% mesh_trimapmesh  - get triangular mapping for two spherical meshes
%
% FORMAT:       [t, el] = mesh_trimapmesh(t, s, st, str)
%
% Input fields:
%
%       t           Tx3 target coordinate list 
%       s           Sx3 source coordinate list
%       st          Tx3 source triangle list
%       str         Sx1 cell array with triangle back references
%
% Output fields:
%
%       t           source vertex (one output) or triangle (two outputs)
%       w           weights for vertices 2, 3 (w1 = 1 - (w2+w3))
%
% Note: coordinates must be centered around [0, 0, 0] and rescaled to r=1

% Version:  v0.7f
% Build:    8110521
% Date:     Nov-05 2008, 9:00 PM CET
% Author:   Jochen Weber, SCAN Unit, Columbia University, NYC, NY, USA
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

% just bail out
error( ...
    'BVQXtools:MEXMissing', ...
    'This is a compiled function. Required MEX file is missing.' ...
);
